<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Máy Tốt</title>

		<!-- Bootstrap -->
		<link href="/theme/Default/css/bootstrap/bootstrap.min.css" rel="stylesheet">
		<link href="/theme/Default/css/bootstrap/bootstrap-theme.min.css" rel="stylesheet">
		
		<script src="/theme/Default/js/jquery-2.1.1.min.js"></script>
		
		<!-- Css -->
		<link href="/theme/Default/css/style.css" rel="stylesheet">

		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
		  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
		<!-- BEGIN HEADER -->
		<?php echo $this->element('header'); ?>
		<!-- END HEADER -->

		<!-- BEGIN CONTAINER -->
		<div id="container">
			<!-- BEGIN MENU-LEFT -->
			<?php echo $this->element('menu-left'); ?>
			<!-- END MENU-LEFT -->

			<!-- END MENU-RIGHT -->
			<div id="menu-right">
				
				<div class="row-3-image">
					<a href="/shopDetail/<?php echo $category_xenang['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-xe-nang.jpg" title='Gian hàng xe nâng' /></a>
					<a href="/shopDetail/<?php echo $category_xedao['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-xe-dao.jpg" title='Gian hàng xe đào'/></a>
					<a href="/shopDetail/<?php echo $category_xexuc['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-xe-xuc-lat.jpg" title='Gian hàng xe xúc-lật'/></a>
				</div>
				<div class="row-3-image">
					<a href="/shopDetail/<?php echo $category_xeui['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-xe-ui.jpg" title='Gian hàng xe ủi'/></a>
					<a href="/shopDetail/<?php echo $category_mayphat['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-may-phat-dien.jpg" title='Gian hàng máy phát điện'/></a>
					<a href="/shopDetail/<?php echo $category_xetai['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-xe-tai.jpg" title='Gian hàng xe tải'/></a>
				</div>
				<div class="row-3-image">
					<a href="/shopDetail/<?php echo $category_dienthoai['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-iphone.jpg" title='Gian hàng điện thoại'/></a>
					<a href="/shopDetail/<?php echo $category_laptop['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-laptop.jpg" title='Gian hàng máy tính'/></a>
					<a href="/shopDetail/<?php echo $category_dongho['Category']['short_link']; ?>"><img src="/theme/Default/img/images-home/hinh-dong-ho.jpg" title='Gian hàng thiết bị kỹ thuật số'/></a>
				</div>
				<div class='showstall'>
					<a href="/shop" >» Xem tất cả gian hàng</a>
				</div>
				<div class='advertise'>
					<?php if(!empty($user) && $user['group_id'] ==3){?>
						<a href="/quan-ly-user" ><i class="glyphicon glyphicon-heart"></i> Tạo website - gian hàng miễn phí</a>
					<?php } else{?>
						<a href="/registerUser" ><i class="glyphicon glyphicon-heart"></i> Tạo website - gian hàng miễn phí</a>
					<?php }?>
				</div>
				<div class='advertise'>
					<a href="/postingFree" ><i class="glyphicon glyphicon-heart"></i> Đăng tin rao vặt miễn phí</a>
				</div>
				<div class="parent_advertise">
					<div class='advertise'>
						<a href="/" ><span style="color: red; text-decoration: underline; font-style: normal; font-weight: bold;">www.maytot.vn</span> kết nối giữa người mua và người bán</a>
					</div>
				</div>
			</div>
			<!-- END MENU-RIGHT -->
			
			<div id="ban-do">
				<img src="/theme/Default/img/images-home/mapvietnam.jpg"/>
				<a href="/search?searchText=&searchCategory=&searchRegion=6&searchBuySell=2" class="bd-ha-noi">Hà Nội</a>
				<a href="/search?searchText=&searchCategory=&searchRegion=2&searchBuySell=2" class="bd-binh-dinh">Bình Định</a>
				<a href="/search?searchText=&searchCategory=&searchRegion=1&searchBuySell=2" class="bd-hcm">Tp. Hồ Chí Minh</a>
			</div>
			
			<!-- BEGIN LIKE FACEBOOK -->
			<div class="fb-like" data-href="https://www.facebook.com/maytot.vn" data-layout="standard" data-action="like" data-show-faces="true" data-share="true">
			</div>
			<!-- END LIKE FACEBOOK -->
		</div>
		<!-- END CONTAINER -->

		<!-- BEGIN FOOTER -->
		<?php echo $this->element('footer'); ?>
		<!-- END FOOTER -->

		<!-- BEGIN POPUP LOGIN -->
	    <?php echo $this->element('popup-login'); ?>
		<!-- END POPUP LOGIN -->
		<script src="/theme/Default/js/default.js"></script>
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		
		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<script src="/theme/Default/js/bootstrap/bootstrap.min.js"></script>

		<script src="/theme/Default/js/style.js"></script>
		<script>
			// begin show like facebook
			(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)[0];
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.0";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));
			// end show like facebook
		</script>
	</body>
</html>